<?php

class Application_Form_Auth extends Zend_Form {

    public function init() {        
        $this->setMethod('post');
        $this->addElement('text', 'login', array(
            'label' => 'Login',
            'required' => true,
            'filter' => array('StringTrim'),
            'validators' => array('alnum')
        ));
        $this->addElement('password', 'password', array(
            'label' => 'Password',
            'required' => true,
            'filter' => array('StringTrim'),
            'validators' => array('alnum')
        ));
        $this->addElement('submit', 'Envoyer');
    }

}
